package servletTestTwo.service.impl;

import java.util.List;

import servletTestTwo.dao.DaoServletOne;
import servletTestTwo.dao.impl.DaoServletImpl;
import servletTestTwo.entity.Entity;
import servletTestTwo.service.ServiceOne;

public class ServiceImpl implements ServiceOne {
	private DaoServletOne daoServletOne=new DaoServletImpl();
	@Override
	public boolean add(Entity userName) {
		daoServletOne.add(userName);
		return false;
	}

	@Override
	public boolean delete(Long id) {
		daoServletOne.delete(id);
		return false;
	}

	@Override
	public boolean update(Entity userName) {
		daoServletOne.update(userName);
		return false;
	}

	@Override
	public List<Entity> listAll() {
		return daoServletOne.listAll();
	}

	@Override
	public Entity getById(Long id) {
		return daoServletOne.getById(id);
	}

	
}
